package com.awonsome.mall.pms.api;

import com.awonsome.common.core.result.Result;
import com.awonsome.mall.pms.pojo.dto.app.SkuDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 商品管理
 * @author yangdejun
 * @date 2022/1/17 17:12
 */
@FeignClient(value = "mall-pms", contextId = "goods")
public interface GoodsFeignClient {

    @GetMapping(value = "/app-api/v1/stocks/{id}")
    Result<SkuDTO> getSkuById(@PathVariable Long id);

}
